package router

import (
	"0411zk/api/handler"
	"0411zk/pkg"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {
	study := r.Group("/study")
	{

		study.POST("/user/register", handler.UserRegister) //todo 用户注册

		study.Use(pkg.JWTAuth("2209a"))

		study.POST("/browse/courses", handler.BrowseCourses)        //todo 浏览课程
		study.POST("/browse/courses/add", handler.BrowseCoursesAdd) //todo 学习课程添加
		study.POST("/browse/courses/del", handler.BrowseCoursesDel) //todo 学习课程删减
		study.POST("/courses/order", handler.CoursesOrder)          //todo 课程订单生成

	}
}
